#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QtSerialPort/QtSerialPort>
#include <QTimer>
#include <QTimerEvent>
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private:
    Ui::Widget *ui;
    QTimer *time1;
    QStringList PortStringList;
    QSerialPort *serial;//私有成员，对象指针
    QString rx_data,tx_data;
    long rx_len,tx_len;
private slots:
   void timerEvent();

   void on_pushButton_clicked();
   
   void serial_port();
   void on_checkBox_clicked();
   void on_checkBox_2_clicked();
   void on_checkBox_3_clicked();
   void on_pushButton_2_clicked();
   void on_pushButton_3_clicked();
   void on_pushButton_4_clicked();
};

#endif // WIDGET_H
